package at.ac.tuwien.sepm.s2011.e0208329.domain;
import java.util.*;

public class Invoice {
	int InvoiceNr;
	String InvoiceDate;
	ArrayList<InvoiceItem> list; // store the InvoiceItems related to current Invoice
   
	//Setter
	public void setNr(int nr){
		this.InvoiceNr = nr;
	}
	
	public void setDate(String dt){
		this.InvoiceDate = dt;
	}
	
	//add a related InvoiceItem to the list
	public void addInvoiceItem(InvoiceItem ii){
		this.list.add(ii);
	}
	
	//Getter
	public ArrayList<InvoiceItem> getList(){
		return this.list;
	}
	
	public int getNr(){
		return this.InvoiceNr;
	}
	
	public String getDate(){
		return this.InvoiceDate;
	}
}
